package com.icode.web.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * User: alexz
 * Date: 15-1-7
 * Time: 下午4:42
 */
@Controller
public class LoginController {

    @RequestMapping(value = "/front/login", method = RequestMethod.GET)
    public String frontendLogin() {
        return "front/login";
    }

    @RequestMapping(value = "/front/welcome", method = RequestMethod.GET)
    public String frontendWelcome() {
        return "front/welcome";
    }

    @RequestMapping(value = "/back/login", method = RequestMethod.GET)
    public String backendLogin() {
        return "back/login";
    }

    @RequestMapping(value = "/oauth2/login", method = RequestMethod.GET)
    public String oAuth2Login() {
        return "oauth2/login";
    }

    @RequestMapping(value = "/back/welcome", method = RequestMethod.GET)
    public String backendWelcome() {
        return "back/welcome";
    }

    @RequestMapping(value = "/deny", method = RequestMethod.GET)
    public String deny() {
        return "deny";
    }
}
